package com.light.gulimall.product.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 从配置文件读取线程池信息
 */
@Component
@ConfigurationProperties(prefix = "gulimall.thread")
@Data
public class MyThreadPoolConfig {

    private int corePoolSize;
    private int maxPoolSize;
    private int keepAliveSeconds;
}
